
import Fajax from "@/utils/fanyi";
import MD5 from 'md5'


export function fanyiFn(data: any) {
    // let str1 = '20241115002203524' + data.query + (new Date).getTime() + 'DWGdvOuJk9n_bQFIOAfN';
    // console.log(str1);

    return Fajax({
        url: '/api/trans/vip/translate',
        type: 'get',
        dataType: 'jsonp',
        data: {
            appid: '20241115002203524',
            salt: (new Date).getTime(),
            q: data.query,
            from: data.from,
            to: data.to,
            sign: MD5('20241115002203524' + data.query + (new Date).getTime() + 'DWGdvOuJk9n_bQFIOAfN'),
        }


    })
}

